package com.cpr.demo.datasourcectl;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author Chen Panrui
 * created at 2022/3/17 18:45
 */
public class ThreadLocalRoutingDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceTypeManager.get();
    }
}
